window.onload = function() {
    const $input = document.querySelector("#input");
    const $val = document.querySelector("#val");
    window.bindData = new Object(null);
    Object.defineProperty(bindData, "value", {
        set: function(val) {
            console.log(val);
            $val.innerHTML = val;
        }
    });
    $input.addEventListener("input", e => {
        bindData.value = e.target.value;
    });
};
